/** 
 * Project Name:sys-portal-Extjs 
 * File Name:FriendView.js 
 * Package Name: 好友列表
 * Author : 吴Yuan|小森森
 * Date:2019年9月19日下午12:13:26 
 * Copyright (c) 2019, 15909910367@163.com All Rights Reserved. 
 * 
 */
Ext.define('Jason.view.chat.FriendView', {
    extend: 'Ext.tree.Panel',
    xtype: 'chatFriendView',
    alias: 'widget.chatFriendView',
    flex: 3,
    ui: 'light',
    dockedItems: [{
        xtype: 'toolbar',
        dock: 'top',
        style: 'background: #d0d0d0;',
        items: [{
            xtype: 'textfield',
            flex: 1,
            emptyText: 'Search',
            triggers: {
                search: {
                    weight: 1,
                    cls: Ext.baseCSSPrefix + 'form-search-trigger',
                    handler: function (btn) {

                    },
                    scope: 'this'
                }
            }
        }]
    }],
    store: {
        type: 'tree',
        folderSort: true,
        fields: [
            { name: 'text', mapping: 'name' }
        ],
        proxy: {
            type: 'ajax',
            url: cfg.requestUrl + 'main/dept/deptTreeAndUser' + cfg.suffix
        }
    }
});